package day2

import scala.io.StdIn

object Test3 {
  def main(args: Array[String]): Unit = {
    println("请输入您狗狗的名字")
    var name = StdIn.readLine()
    println("请输入您狗狗的颜色")
    var color = StdIn.readLine()

    var dog = new Dog
    dog.name = name
    dog.color = color

    println("请为您的狗狗充值")
    var i = StdIn.readLine()
    dog.power += 1

    println("----------------狗狗开始吃东西----------------")
    dog.eat()
    Thread.sleep(5000)

    println("---------------狗狗开始表演节目-------------------")
    dog.jiao()
  }
}
